/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rh.game.loader;

import com.rh.game.GameEffect.Type;
import com.rh.game.Location;

/**
 *
 * @author Hayden
 */
public class GameEffectKeys {
    private Location location = Location.NULL;
    private String whomID = null;
    private String whomID2 = null;
    private String objectID = null;
    private Type type = null;
    
    public Location getLocation()  { return location; }
    public String getWhomID()  { return whomID; }
    public String getWhomID2()  { return whomID2; }
    public String getObjectID()  { return objectID; }
    public Type getType()  { return type; }
    
    void setLocation(Location l)  {
        location = l;
    }
    void setWhomID(String pID)  {
        whomID = pID;
    }
    void setWhomID2(String pID)  {
        whomID2 = pID;
    }
    void setObjectID(String pID)  {
        objectID = pID;
    }
    void setType(String pType)  {
        type = Type.valueOf(pType);
    }
    
    @Override
    public String toString()  {
        return getType() + ", " + getWhomID() + ", " + getObjectID() + ", " + getLocation();
    }
}
